﻿using System.IO;

namespace OpenCompiler.Scanning
{
	public class Token
	{
		public LineInfo Location { get; set; }
		public int Column { get; set; }

		public object ActualToken { get; set; }


		public override string ToString()
		{
			var filename = Path.GetFileName(this.Location.File.Filename);
			var str = string.Format("{0}({1} - {2}) - {3}", filename, this.Location.Line, this.Column, this.ActualToken.ToString());
			return str;
		}
	}
}
